<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>50bus-剧本</title>
    <meta name="keywords" content="50bus" />
    <meta name="copyright" content="50bus.cn" />
    <!-- <meta http-equiv="mobile-agent" content="http://www.50bus.cn/" />
    <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" /> -->
    <link rel="icon" href="/resources/img/favicon.ico" type="image/x-icon" />
    
    <link rel="stylesheet" type="text/css" href="/resources/css/base.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/resources/css/globe.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/resources/css/module-script.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/resources/css/page.css" media="all" />
    <script type="text/javascript" src="/resources/js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="/resources/js/jquery.pagination.js"></script>
</head>
<body>
    <div class="header_wrap">
        <div class="header clearfix">
            <div class="fm980 fl clearfix">
                 <a href="/index.html" class="logo fl"></a>
                <ul class="nav_box fl">
                    <li><a href="/creative_list.html"  >形象创意</a></li>
                    <li><a href="/script_list.html" >剧本创作</a></li>
                    <li><a href="/render_index.html">动画渲染</a></li>
                    <li><a href="/creative_helper.html">创意助手</a></li>
                </ul>
                <div class="about_box fr">
                    <a href="/about.html">关于我们</a>
                    <#if uid??&&uid!="">
	                    <a href="/user/user_work.html">个人空间</a>
	                    <a href="/logout.html">退出</a>
                    <#else>
	                    <a href="/register.html">注册</a>
	                    <a href="/login.html">登录</a>
                    </#if>
                </div>
            </div>
        </div>
    </div>
    <div class="body_wrap">
        <div class="box_2">
            <div class="fm980">
                <div class="box_bd script_own_box">
                    <div class="user_name clearfix">
                    	<#if attribute_user.header_img?? && (attribute_user.header_img != '')>
	                		<span class="user_pic fl"><img class="r10" style="width:20px;height:20px;" src="${attribute_user.header_img}" /></span>
	                	<#else>
	                		<span class="user_img fl"><img class="r10"  src="/resources/img/user_def_70.png" /></span>
	                	</#if>
                        <span class="ml5 fl">${attribute_user.comp}</span>
                    </div>
                    <div class="clearfix">
                        <!-- 左侧剧本详情 -->
                        <div class="script_tab_item fl">
                            <ul>
                              <#list scriptOwnList as scriptOwn>  
                                <li class="clearfix">
                                    <div class="spt_img_box fl">
                                      <a href="/script_contribute_list.html?own_sid=${scriptOwn.own_sid}&sid=${scriptOwn.sid}&attribute_uid=${scriptOwn.uid}">
                                        <#list scriptList as script>
                                         <#if scriptOwn.sid=script.sid>
                                          <#if script.s_cover??&&script.s_cover!="">
                                           <img style="width:90px;height:134px;" src="${script.s_cover}">
                                          <#else>
                                           <img  src="/resources/img/script_def_90x134.png">
                                          </#if>
                                         </#if>
                                        </#list>
                                      </a>
                                    </div>
                                    <div class="script_con">
                                        <h4> <a class="fr" href="javascript:;"></a><a href="/script_contribute_list.html?own_sid=${scriptOwn.own_sid}&sid=${scriptOwn.sid}&attribute_uid=${scriptOwn.uid}"> ${scriptOwn.script_title_own}</a></h4>
                                        <p>
                                        	<#if scriptOwn.essential?length gt 112 >${scriptOwn.essential?substring(0,112)}...<#else>${scriptOwn.essential}</#if>
                                        </p>
                                        <div class="time_box clearfix">
                                            <span class="fr like_box_14 liked_box_14">
                                                ${scriptOwn.addlike} 
                                                <a href="/script_contribute_list.html?own_sid=${scriptOwn.own_sid}&sid=${scriptOwn.sid}&attribute_uid=${scriptOwn.uid}" class="fav_heart"></a>
                                            </span>
                                            ${scriptOwn.create_time?datetime("yyyy-MM-dd HH:mm:ss")?date}
                                            <span class="ml20">阅读人数：${scriptOwn.view_count}人</span>
                                         </div>
                                    </div>
                                </li>
                              </#list>  
                            </ul>
                           <div id="Pagination" class="page_box mb40"></div>
                        </div>

                        <!-- 右侧剧本相关 -->
                        <div class="vote_desc fr">
                            <p class="fz16 mb15">用你的鼠标投票 · · · · · ·</p>
                            <p>
                                如果你觉得一篇投稿够精彩，请你点击“&hearts;”。 你的投票直接决定哪些故事出现在以后的电影电视剧里。<br>
                                点击都是匿名的。
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="footer">
        <div class="fm980 clearfix">
            <div class="foot_link foot_link1 fl">
                <a href="/creative_list.html">形象创意</a>
                <a href="/script_list.html">剧本创作</a>
                <a href="/render_index.html">动画渲染</a>
                <a href="/creative_helper.html" >创意助手</a>
            </div>
            <div class="foot_link foot_link2 fl">
                <a href="http://zjusp.zju.edu.cn/">浙大科技园</a>
                <a href="http://www.zju.edu.cn/">浙江大学</a>
                <a href="/about.html" >关于我们</a>
            </div>
            <div class="copy_box fr">
                <img class="mb5" src="/resources/img/foot_text.png" />
                <p>&copy; 2013-2016 All right reserved</p>
                <p><a href="">服务条款</a><a href="">隐私条款</a><a href="">法律条款</a></p>
                <p style="display:none;"><a href="" class="share_icon share_sina"></a><a href="" class="share_icon share_wx"></a></p>
            </div>
        </div>
    </div>
<script type="text/javascript">
$(function(){
	var initPagination = function() {
		$("#Pagination").pagination(${totalCount}, {
			num_edge_entries: 3, //边缘页数
			num_display_entries: 2, //主体页数
			callback: pageselectCallback,
			items_per_page:${pageSize}, //每页显示创意数量
			current_page:${pageIndex}-1,
			prev_text:"<",
			next_text:">",
			ellipse_text:"...",
			prev_show_always:true,
			next_show_always:true,
			async:false
		});
	 }();
	function pageselectCallback(current_page, panel){
		location.href = "/comp_attribute_list.html?attribute_uid=${attribute_user.uid}&pageIndex="+(current_page+1);
	}
});
</script>
<script type="text/javascript" src="/resources/js/page-index.js"></script>
<script type="text/javascript">
	<#if uid??&&uid!="">
    	$.post("/common/getUserName.json",{"uid":${uid}},function(data){
    		if(data.name){
    			$('a[href="/user/user_work.html"]').html(data.name+"个人空间");
    		}
    	});
	 </#if>
</script>
</body>
</html>